<template>
  <div class="">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="title" label="标题"></el-table-column>
      <el-table-column prop="time" label="创建时间"></el-table-column>
      <el-table-column label="操作">
          <el-button type="primary" icon="el-icon-edit" @click="gotarget"></el-button>
          <el-button type="danger" icon="el-icon-delete" @click="gotarget"></el-button>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tableData: [
        {
          title:"法考",
          time: "2016-05-02"
        },
        {
          title:"CPA",
          time: "2016-05-04"
        },
        {
          title:"二级建造师",
          time: "2016-05-01"
        },
        {
          title:"PMP",
          time: "2016-05-03"
        }
      ]
    }
  },
  methods:{
      gotarget(){
         
      }
  }
};
</script>
<style>
.el-table td,
.el-table th {
  padding-left: 20px;
}
</style>
